package com.hk.core.elasticsearch.repository;

import org.springframework.data.elasticsearch.core.ReactiveElasticsearchOperations;
import org.springframework.data.elasticsearch.repository.support.ReactiveElasticsearchRepositoryFactory;
import org.springframework.data.repository.core.RepositoryMetadata;


/**
 * @author Kevin
 */
public class BaseReactiveElasticsearchRepositoryFactory extends ReactiveElasticsearchRepositoryFactory {

    /**
     * Creates a new {@link ReactiveElasticsearchRepositoryFactory} with the given
     * {@link ReactiveElasticsearchOperations}.
     *
     * @param elasticsearchOperations must not be {@literal null}.
     */
    public BaseReactiveElasticsearchRepositoryFactory(ReactiveElasticsearchOperations elasticsearchOperations) {
        super(elasticsearchOperations);
    }

    @Override
    protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata) {
        return SimpleBaseReactiveElasticsearchRepository.class;
    }
}
